<!--
 * @Author: 李楚胜 lics@epsoft.com.cn
 * @Date: 2025-02-08 16:37:23
 * @LastEditors: 李楚胜 lics@epsoft.com.cn
 * @LastEditTime: 2025-02-12 16:19:29
 * @FilePath: \A0001\src\App.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div id="app" v-show="show">
    <!-- <Login v-if="!isLoggedIn" @login-success="handleLoginSuccess" /> -->
    <router-view @hook:mounted="pageMounted" />
  </div>
</template>

<script setup>
import { ref, onMounted } from "vue";
// import Login from "@/views/login/index.vue";

let show = ref(true);

const handleLoginSuccess = () => {
  isLoggedIn.value = true;
};

onMounted(() => {
  const time = setInterval(() => {
    if (window.recordStyleFlag) {
      show = true;
      // this.$store.commit("SET_APPSHOW", show);
      clearInterval(time);
    }
  }, 10);
});
</script>

<style>
.html,
body {
  margin: 0;
  padding: 0;
}
</style>
